package com.example.demo;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@Controller
@RequestMapping("/user")
@ResponseBody
//@RestController
public class User {
    @RequestMapping("/hello")
    //@RequestMapping(value = "/hello",method = RequestMethod.POST)
    public String say(){
        return "你好,叶良辰";
    }
}
